import Vue from 'vue'
import App from './App'
import store from './store'
import { Net, Toast, Common, DataStore, Jump } from "./utils/utils";//导入工具类，可以按需删除
import Validate from "./utils/Validate";//导入工具类，可以按需删除

Vue.config.productionTip = false
Vue.prototype.$store = store;
Vue.prototype.$Toast = Toast;
Vue.prototype.$Net = Net;
Vue.prototype.$Common = Common;
Vue.prototype.$DataStore = DataStore;
Vue.prototype.$Jump = Jump;
Vue.prototype.$app = App;
Vue.prototype.$Validate = Validate;

App.mpType = 'app'

import uView from 'uview-ui';
Vue.use(uView);

//全局注册filter
import * as filters  from './utils/filters.js'
Object.keys(filters).forEach(key => Vue.filter(key, filters[key]))

const app = new Vue({
    ...App
})
app.$mount()
